package com.spring.sso.config;

import com.google.common.collect.Maps;
import com.spring.sso.config.security.cookie.CookieService;
import lombok.Data;
import org.codehaus.commons.nullanalysis.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.client.RestTemplate;

import java.util.Map;

/**
 * @author : pangfuzhong
 * @description
 * @date : 2021/9/20 16:35
 */
@Configuration
@Data
public class AuthenticationConfig {
    private Map<String, Object> configMap = Maps.newConcurrentMap();

    @Value("${spring.application.name}")
    private String appName;

    @Value("${sso.remote.auth.center}")
    private String ssoServerAddr;

    @Value("${sso.remote.auth.token}")
    private String serverTokenAuthUrl;

    @Value("${sso.remote.auth.login}")
    private String serverLoginAuthUrl;

    @Autowired
    private CookieService cookieService;

    @Autowired
    private RestTemplate restTemplate;

    @Autowired
    private RedisTemplate redisTemplate;
}
